﻿namespace EyFramework.Common
{
    /// <summary>
    /// 常量
    /// </summary>
    public static class Constants
    {
        #region RunMode

        /// <summary>
        /// 正常模式
        /// </summary>
        public static readonly string RUNMODE_NORMAL = "Normal";

        /// <summary>
        /// 调试模式运行
        /// </summary>
        public static readonly string RUNMODE_DEBUG = "Debug";

        #endregion RunMode

        /// <summary>
        /// HIS数据库连接标识
        /// </summary>
        public static readonly string CONNECT_TYPE_HIS = "DATABASE-HIS";

        /// <summary>
        /// 体检系统数据库链接标志
        /// </summary>
        public static readonly string CONNECT_TYPE_TJ = "DATABASE-TJ";

        /// <summary>
        /// LIS数据库连接标识
        /// </summary>
        public static readonly string CONNECT_TYPE_LIS = "DATABASE-LIS";

        /// <summary>
        /// 医保数据库连接
        /// </summary>
        public static readonly string CONNECT_TYPE_INSU = "DATABASE-INSU";

        #region 配置文件常量

        //系统节点的名称
        public const string SECTION_APPLICATION = "Application";

        //Dev的皮肤
        public const string CFG_SkinName = "SkinName";

        //当前的运行模式
        public const string CFG_RunMode = "RunMode";

        //最后一次登录的子系统ID
        public const string CFG_LastRunSysId = "LastRunSysId";

        //名称
        public const string CFG_AppName = "AppName";

        //版本
        public const string CFG_AppVersion = "AppVersion";

        //公司名称
        public const string CFG_CompanyName = "CompanyName";

        #endregion 配置文件常量

        #region 数据库类型

        public const string DATABASE_ORACLE = "ORACLE";

        public const string DATABASE_MYSQL = "MYSQL";

        public const string DATABASE_SQLSERVER = "SQLSERVER";

        public const string DATABASE_SQLITE = "SQLITE";

        #endregion 数据库类型

        /// <summary>
        /// .NET任务调度命令的订阅频道
        /// </summary>
        public const string TASK_CHANNEL = "CsTaskChannel";
    }
}